package cn.edu.ujn.lab3.mapper;

import cn.edu.ujn.lab3.entity.Customer;
import cn.edu.ujn.lab3.entity.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface CustomerMapper {
    List<Customer>findAll();

    List<Customer> selectByMobile(@Param("mobile")String mobile);

    List<Customer> selectCustomerByName(@Param("name")String name);

    List<Customer> selectCustomerByPage(Page page);

    Boolean addCustomer(@Param("customer") Customer customer);

    Boolean updateCustomer(@Param("customer") Customer customer);

    Boolean deleteCustomer(@Param("id") Integer id);


}
